function props() {
    this.createProps = function (propPool, prop_prefab,PropsAtlas,data,parent_Node,blockArr) {
        var _prop;
        if (propPool.size() > 0) {
            _prop = propPool.get();
        } else {
            _prop = cc.instantiate(prop_prefab);
        }
        _prop.getComponent(cc.Sprite).spriteFrame=PropsAtlas.getSpriteFrame(data.key+"0");
        _prop.x=data.x;
        _prop.y=data.y;
        _prop.type=data.key;
        _prop.parent=parent_Node;
        _prop.getChildByName("row").getComponent(cc.Label).string=data.row;
        _prop.getChildByName("col").getComponent(cc.Label).string=data.col;
        var _data=data;
        _data.obj=_prop;
        blockArr[data.row*data.MaxRow+data.col]=_data;
    };
    this.poolProps = function (propPool, obj) {
        propPool.put(obj);
    }
}

var _instance = null;
module.exports = function () {
    if (!_instance) {
        _instance = new props();
    }
    return _instance;
};